<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title><?php echo $this->escape($this->pageTitle); ?></title>    
    <?php $this->loadStyles($this->baseUrl,$this->moduleName,$this->controllerName,$this->actionName,$this->themeId) ?>
    <?php $this->loadScripts($this->baseUrl,$this->moduleName,$this->controllerName,$this->actionName) ?>
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
</head>

<body>    
	
    <div id="maincontent">
		<div id="header" >
			<div class="logoAdmin"><img src="<?php echo $this->baseUrl; ?>/public/media/images/admin/logoAdmin.jpg"/></div>
				<div style="float: right; padding-right: 5px;">
                                        <?php if($this->user): ?>
					<div style="float: left;width: auto;">
					<ul>
						<li class="li01"><?php echo $this->user->username ?></li>
						<li class="li02"> | </li>
						<li class="li01"><a href="<?php echo $this->baseUrl ?>/backend/auth/logout" class="menu"><?php print $this->lang_data->_('Logout'); ?></a></li>
						<li class="li02"> | </li>
						<li class="li01"><a href="<?php echo $this->baseUrl ?>/backend/auth/changepw" class="menu"><?php print $this->lang_data->_('Change password'); ?></a></li>
						<li class="li02"> | </li>
						<li class="li01"><a class="menu" href="<?php echo $this->baseUrl ?>/"><?php echo $this->lang_data->_('Visit site'); ?></a>&nbsp;					
						<?php $this->translationLink($this->baseUrl,$this->moduleName,$this->controllerName,$this->actionName,$this->linkName,$this->pageID,'vn'); ?> &nbsp;
                                                <?php $this->translationLink($this->baseUrl,$this->moduleName,$this->controllerName,$this->actionName,$this->linkName,$this->pageID,'en'); ?></li>
					</ul>
					</div>
                                        <?php endif ?>
				</div>
			<div class="logoZVN" ></div>	
			<div class="clearDiv"></div>	
		</div>
	    
	    <?php if($this->controllerName != 'auth' || $this->actionName=='changepw'): ?>
	    <div id="menuTop" > 
	    	<div style="float: left">
                    <ul id="sddm">
                        <?php if($this->user->account_types_id == ADMIN): ?>
                        <li>
                            <a href="<?php echo $this->baseUrl ?>/backend/account/index/<?php echo $this->langType ?>" class="menu"><?php print $this->lang_data->_('Accounts'); ?></a>
                        </li>
                        <?php endif;?>

                        <li>
                            <a href="<?php echo $this->baseUrl ?>/backend/customer/index/lang/<?php echo $this->langType ?>" class="menu"><?php print $this->lang_data->_('Customers'); ?></a>
                        </li>
                        <li>
                            <a href="<?php echo $this->baseUrl ?>/backend/partner/index/lang/<?php echo $this->langType ?>" class="menu"><?php print $this->lang_data->_('Partners'); ?></a>
                        </li>
                        <li>
                            <a href="<?php echo $this->baseUrl ?>/backend/project/index/lang/<?php echo $this->langType ?>" class="menu"><?php print $this->lang_data->_('Projects'); ?></a>
                        </li>
                        <li>
                            <a href="<?php echo $this->baseUrl ?>/backend/solution/index/lang/<?php echo $this->langType ?>" class="menu"><?php print $this->lang_data->_('Solutions'); ?></a>
                        </li>
                        <li>
                            <a href="<?php echo $this->baseUrl ?>/backend/article/index/lang/<?php echo $this->langType ?>" class="menu"><?php print $this->lang_data->_('Articles'); ?></a>
                        </li>
                        <li>
                            <a href="<?php echo $this->baseUrl ?>/backend/servicetype/index/lang/<?php echo $this->langType ?>" class="menu"><?php print $this->lang_data->_('Service Type'); ?></a>
                        </li>
                        <li>
                            <a href="<?php echo $this->baseUrl ?>/backend/articletype/index/lang/<?php echo $this->langType ?>" class="menu"><?php print $this->lang_data->_('Article Type'); ?></a>
                        </li>
                    </ul>
                </div>
		</div>    
            <?php endif; ?>
    	
	  	<div class="separate"></div>
	  	
	  	<div id="center" align="center">
	  		<div style="width: 969px;">
		  		<div class="top"></div>
		  		<div class="center"  style="min-height: 400px">
	        		<?php echo $this->layout()->content ?>
	        	</div>
	        	<div class="bottom"></div>
        	</div>
        </div>
        
        <div class="separate"></div>       	

       <div id="bottom" style="padding-top: 20px; color: #FFFFFF;" >
			<strong>VietInCom ver 0.1</strong>
			<br />
			Powered by 
			<a href="#" class="bottom">
				<strong>VietInCom</strong>
			</a>
		</div>
		
	</div>   
</body>
</html>